package edu.zut.cs.software.estateagent.visitor.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import edu.zut.cs.software.base.web.spring.controller.GenericController;
import edu.zut.cs.software.estateagent.visitor.domain.Visithistory;
import edu.zut.cs.software.estateagent.visitor.service.VisithistoryManager;

@Controller
@RequestMapping("/requirement")
public class VisithistoryController extends GenericController<Visithistory, Long, VisithistoryManager> {

	VisithistoryManager requirementManager;

    @RequestMapping("/index")
    public String index() {
        return "requirement/index";
    }

    @Autowired
    public void setRequirementManager(VisithistoryManager requirementManager) {
        this.requirementManager = requirementManager;
        this.manager = this.requirementManager;
    }
}
